const fs = require('fs')
const str = '苏轼'
fs.writeFile('./files/1.txt', str, function (err) {

    if (err == null) {
        console.log('写入成功')
    } else {
        console.log('写入失败', err.message)
    }
})